import { defineStore } from "pinia"
import type { MenuButtonBounding, SystemState } from "@/types/system"
export const useSystemStore = defineStore("useSystemStore", {
  state: (): SystemState => {
    return {
      menuButtonBounding:{
		  top: 0,
		  bottom: 0,
		  height: 0
	  },
	  routers: [],
	  activatedIndex: 0
    }
  },
  getters: {
    getMenuButtonBounding(): MenuButtonBounding{
		return this.menuButtonBounding
	}
  },
  actions: {
	setMenuButtonBounding(payload: MenuButtonBounding){
		this.menuButtonBounding = payload
	},
	setRouters(payload: any){
		this.routers = payload
	},
	setActivatedIndex(payload: number){
		this.activatedIndex = payload
	}
  }
})
